package com.ruoyi.withdrawal.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 提现申请对象 withdrawal_application
 * 
 * @author ruoyi
 * @date 2025-11-20
 */
public class WithdrawalApplication extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 提现编号 */
    @Excel(name = "提现编号")
    private String withdrawalNo;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 提现金额 */
    @Excel(name = "提现金额")
    private BigDecimal amount;

    /** 钱包地址 */
    @Excel(name = "钱包地址")
    private String walletAddress;

    /** 状态 */
    @Excel(name = "状态")
    private Long status;

    /** 计划转账时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "计划转账时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date scheduledTransferTime;

    /** 实际转账时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "实际转账时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date actualTransferTime;

    /** 交易ID */
    @Excel(name = "交易ID")
    private String txId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setWithdrawalNo(String withdrawalNo) 
    {
        this.withdrawalNo = withdrawalNo;
    }

    public String getWithdrawalNo() 
    {
        return withdrawalNo;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setAmount(BigDecimal amount) 
    {
        this.amount = amount;
    }

    public BigDecimal getAmount() 
    {
        return amount;
    }

    public void setWalletAddress(String walletAddress) 
    {
        this.walletAddress = walletAddress;
    }

    public String getWalletAddress() 
    {
        return walletAddress;
    }

    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    public void setScheduledTransferTime(Date scheduledTransferTime) 
    {
        this.scheduledTransferTime = scheduledTransferTime;
    }

    public Date getScheduledTransferTime() 
    {
        return scheduledTransferTime;
    }

    public void setActualTransferTime(Date actualTransferTime) 
    {
        this.actualTransferTime = actualTransferTime;
    }

    public Date getActualTransferTime() 
    {
        return actualTransferTime;
    }

    public void setTxId(String txId) 
    {
        this.txId = txId;
    }

    public String getTxId() 
    {
        return txId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("withdrawalNo", getWithdrawalNo())
            .append("userId", getUserId())
            .append("amount", getAmount())
            .append("walletAddress", getWalletAddress())
            .append("status", getStatus())
            .append("scheduledTransferTime", getScheduledTransferTime())
            .append("actualTransferTime", getActualTransferTime())
            .append("txId", getTxId())
            .append("remark", getRemark())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
